import {replace} from "../ts/util.ts";
import {baseMenu} from "../ts/type.ts";

export let allMenu = [
    replace(baseMenu(), {
        key: 'builder',
        label: '代码生成',
        children: [
            replace(baseMenu(), {
                key: 'ConfigInfoPage',
                path: '/a/config/info/page',
                label: '配置列表'
            }),
            replace(baseMenu(), {
                key: 'TableInfoPage',
                path: '/a/table/info/page',
                label: '实体列表'
            }),
            replace(baseMenu(), {
                key: 'ColumnInfoPage',
                path: '/a/column/info/page',
                label: '字段列表'
            }),
            replace(baseMenu(), {
                key: 'IndexInfoPage',
                path: '/a/index/info/page',
                label: '索引列表'
            }),
            replace(baseMenu(), {
                key: 'IndexColumnInfoPage',
                path: '/a/index/column/info/page',
                label: '索引字段'
            }),
            replace(baseMenu(), {
                key: 'CodeInfoPage',
                path: '/a/code/info/page',
                label: '编码字段'
            }),
            replace(baseMenu(), {
                key: 'CodePage',
                path: '/a/code/page',
                label: '编码信息'
            }),
            replace(baseMenu(), {
                key: 'SelectInfoPage',
                path: '/a/select/info/page',
                label: '关联字段'
            }),
            replace(baseMenu(), {
                key: 'RelateInfoPage',
                path: '/a/relate/info/page',
                label: '依赖字段'
            }),
            replace(baseMenu(), {
                key: 'DictInfoPage',
                path: '/a/dict/info/page',
                label: '字典字段'
            }),
            replace(baseMenu(), {
                key: 'DictTypePage',
                path: '/a/dict/type/page',
                label: '字典类型'
            }),
            replace(baseMenu(), {
                key: 'DictDataPage',
                path: '/a/dict/data/page',
                label: '字典键值'
            })
        ]
    })
]

